//响应基础的ts类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
//代表一个美食餐厅信息的ts类型
export interface Travel {
  id: number
  name: string
  category: string
  introduction: string
  price: number
  location: string
  latitude?: number
  longitude?: number
  phone: string
  rating: number
  is_online: number
  cover: Array<any>
  images: Array<any>
  video: Array<any>
  // createTime: Date
  // updateTime: Date
}
//数组包含全部的美食餐厅信息
export type Records = Travel[]
//获取全部美食餐厅信息接口返回的数据ts类型
export interface TravelResponseData extends ResponseData {
  data: {
    records: Records
    total: number
    size: number
    current: number
    pages: number
  }
}
